<extend name="Base/list" />

<block name="title">产品分类</block>

<block name="nav">
<li class="current"><a href="{:U(CONTROLLER_NAME.'/index')}">列表</a></li>
<li><a href="{:U(CONTROLLER_NAME.'/add')}">添加</a></li>
</block>

<block name="list">
<if condition="$All">
{$page}
<div id="list">
  <form method="post" action="{:U(CONTROLLER_NAME.'/sort')}">
    <table>
      <tr><th class="name">分类名称</th><th class="sort"><input type="submit" value="排序" class="btn btn-primary radius"></th><th class="date">添加时间</th><th class="control">操作</th></tr>
      <foreach name="All" key="key" item="value">
      <tr><td style="color:{$value['color']};">{$value['name']|keyword=$keyword}</td><td><input type="text" name="sort[{$value['id']}]" value="{$value['sort']}" class="input-text"></td><td>{$value['date']|dateFormat}</td><td><a href="{:U(CONTROLLER_NAME.'/update',array('id'=>$value['id']))}">修改</a>/<a href="{:U(CONTROLLER_NAME.'/delete',array('id'=>$value['id']))}">删除</a></td></tr>
       </foreach>
    </table>
  </form>
</div>
{$page}
<else/>
<p id="nothing">没有找到您搜索的产品分类</p>
</if>
</block>